package cn.bluech.example;

import android.content.Context;

/**
 * Description:
 * Create by Codeant on 2019/12/16.
 */
public class Utils {

    // 获取状态栏高度
    public static int getStatusBarHeight(Context context){
        int resId = context.getResources().getIdentifier("status_bar_height", "dimen", "android");
        return context.getResources().getDimensionPixelSize(resId);
    }
}
